﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="VegetablePicker.aspx.cs" Inherits="PickerControl.Pickers.VegetablePicker" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
	<title>Select a vegetable</title>
	<script type="text/javascript" >
		//<![CDATA[
		function setVegetable(vegetable) {
			var callbackName = '<%= Request.QueryString["callback"] %>';
			var callbackCallString = 'window.opener.' + callbackName + '("' + vegetable + '");';
			
			eval(callbackCallString);
			close();
		}
		//]]>
	</script>
</head>
<body>
	<form id="vegetablePickerForm" runat="server">
		<table cellpadding="0px" cellspacing="0px" border="0px">
			<tr><td><a href="#" onclick="setVegetable('carrot'); return false;">carrot</a></td></tr>
			<tr><td><a href="#" onclick="setVegetable('tomato'); return false;">tomato</a></td></tr>
			<tr><td><a href="#" onclick="setVegetable('cucumber'); return false;">cucumber</a></td></tr>
		</table>
	</form>
</body>
</html>
